#!/bin/bash
# Copyrignt (c) maozhihua.com. All Rights Reserved.
# Author: Mao Zhihua<maozhihua@skyworth.com>
# Created Time: 2016-09-10 16:02:07
# Last Modified: 2016-10-20 12:07:17
# File Name: update_module_order.sh
# Description: 

source ./gl.sh

body1='{"container_type":1,"container_name":"","more_routers":"","layout":{"size":"2:1","isautoroll":1,"direct":"right","interval":1,"loop":0,"show_contain_name":2},"item_order":[1,2,3,4]}'
body2='{"container_type":2,"container_name":"指尖快报","more_routers":"","layout":{"background_picture":"local_url://home_news_image","background_color":"","isautoroll":1,"direct":"bottom","interval":2,"loop":0},"item_order":[1,2,3,4]}'
body3='{"container_type":3,"container_name":"","more_routers":"zhjt://app.zhiijandaojia/jdq?.....","layout":{},"item_order":[1,2,3,4,5,6,7,8]}'
body4='{"container_type":4,"container_name":"","more_routers":"","layout":{},"item_order":[1]}'

#curl -v -k "https://${host}/homepage/web/container/add?appkey=${appkey}" -d "${body}"

curl -v -k -H "Host:adop.app.doubimeizhi.com" "https://10.169.94.211:443/homepage/web/container/add?appkey=${appkey}" -d "${body1}"
curl -v -k -H "Host:adop.app.doubimeizhi.com" "https://10.169.94.211:443/homepage/web/container/add?appkey=${appkey}" -d "${body2}"
curl -v -k -H "Host:adop.app.doubimeizhi.com" "https://10.169.94.211:443/homepage/web/container/add?appkey=${appkey}" -d "${body3}"
curl -v -k -H "Host:adop.app.doubimeizhi.com" "https://10.169.94.211:443/homepage/web/container/add?appkey=${appkey}" -d "${body4}"


